import clr
import System
import sys
clr.AddReference('xunit.dll')
from Xunit import FactAttribute, Assert
from ClrWrapper import ClrAttribute, ClrAccepts, ClrReturns, ClrProperty

class Test2(object):
	clr_namespace = 'Another.Test'
	
	def __init__(self):
		self.testCount = 0
	
	@ClrAttribute(FactAttribute)
	def TestNothing(self):
		Assert.Equal[type(1)](1, 1)
	
	@ClrAttribute(System.ObsoleteAttribute)
	@ClrAccepts(System.String, System.Int32)
	@ClrReturns(System.Int32)
	def Compute(self, s, i):
		return len(s) + i
	
	@staticmethod
	@ClrAccepts()
	def Main():
		print 'Hello world!'
	
	@classmethod
	@ClrAccepts()
	def Main2(cls):
		pass
	
	def set_testCount(self, value):
		self.testCount = value
	
	def get_testCount(self):
		return self.testCount
	
	testCount = ClrProperty(System.Int32, get_testCount, set_testCount)
	testCount.clr_attributes = [
		(System.SerializableAttribute, ),
	]
